package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbGoodsDescMapper;
import com.dongdongshop.pojo.goods.TbGoodsDesc;
import com.dongdongshop.service.goods.GoodsDescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author Eayon
 * @Date 2020/3/5 18:19
 */
@Service
@Component
public class GoodsDescServiceImpl implements GoodsDescService {
    @Resource
    private TbGoodsDescMapper goodsDescMapper;

    /**
     * 根据商品id查询商品详情
     * @param id
     * @return
     */
    @Override
    public TbGoodsDesc getGoodsDescById(Long id) {
        return goodsDescMapper.selectByPrimaryKey(id);
    }
}
